package fr.cephb.operonj.core.db.database;

import com.sleepycat.bind.tuple.StringBinding;
import com.sleepycat.bind.tuple.TupleBinding;
import com.sleepycat.je.DatabaseConfig;
import com.sleepycat.je.DatabaseException;
import com.sleepycat.je.Environment;
import com.sleepycat.je.Transaction;

public class SetOfStringsDB extends AbstractSetDB<String>
	{
	private TupleBinding<String> keyBinding= new StringBinding();
	
	public SetOfStringsDB(Environment env, Transaction txn,
			String databaseName, DatabaseConfig dbConfig)
			throws DatabaseException
		{
		super(env, txn, databaseName, setSmartSorter(defaultDbCfg(env,dbConfig)));
		}

	@Override
	public TupleBinding<String> getKeyBinding()
		{
		return keyBinding;
		}

	}
